<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <style type="text/css">
        table{border:solid 1px #000000;
            margin: auto;
            text-align: center;//文本对齐方式
        }
        tt,th{
            border:solid 1px #000000;
            padding:2px;
        }

        h1{text-align: center}
    </style>
</head>
<body>
<h1>添加用户</h1>
/*onsubmit="return false;" 将无论何时都阻止表单的提交
onsubmit="return check();" 是否提交表单取决于check()的返回值
onsubmit="check();" check()的返回值无影响*/
<form  name="form "  action="useAdd.jsp" method="post">
    <table>
        <tr>
            <th>用户名</th>
            <td><input type="text" name="id"></td>
        </tr>
           <tr>
               <th>编号</th>
               <td><input type="text" name="userName"></td>
           </tr>
        <tr>
            <th>密码</th>
            <td><input type="text" name="password"></td>
        </tr>
        <tr>
            <th colspan="2">
                <input type="submit" value="添加">
                <input type="reset"  value="重置">
            </th>//colspan:横跨的列数，更新和删除需要用到
        </tr>
    </table>
</form>
</body>
</html>